import request from '@/utils/request'

// 查询货值收费列表
export function listValConfig(params) {
  return request({
    url: '/system/valConfig/findPageCostGoodsValConfig',
    method: 'post',
    data: params
  })
}

// 查询货值收费详细
export function getValConfig(id) {
  return request({
    url: '/system/valConfig/getInfo/' + id,
    method: 'get'
  })
}

// 新增货值收费
export function addValConfig(params) {
  return request({
    url: '/system/valConfig/saveCostGoodsValConfig',
    method: 'post',
    data: params
  })
}

// 修改货值收费
export function updateValConfig(params) {
  return request({
    url: '/system/valConfig/updateCostGoodsValConfig',
    method: 'post',
    data: params
  })
}

// 删除货值收费
export function delValConfig(id) {
  return request({
    url: '/system/valConfig/deleteCostGoodsValConfig/',
    method: 'post',
    data: id
  })
}

// 导出货值收费
export function exportValConfig(query) {
  return request({
    url: '/system/valConfig/export',
    method: 'get',
    params: query
  })
}
